package org.jeecg.modules.demo.jxcx.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.demo.jxcx.dto.OpenidAccountDTO;
import org.jeecg.modules.demo.jxcx.mapper.JxcOpenuserMapper;
import org.jeecg.modules.demo.jxcx.po.JxcOpenuser;
import org.jeecg.modules.demo.jxcx.service.JxcOpenuserService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author DeskTop
* @description 针对表【jxc_openuser】的数据库操作Service实现
* @createDate 2024-07-23 18:08:05
*/
@Service
public class JxcOpenuserServiceImpl extends ServiceImpl<JxcOpenuserMapper, JxcOpenuser> implements JxcOpenuserService{

    @Override
    public OpenidAccountDTO queryDefaultByOpenid(String openid) {
        return baseMapper.selectDefaultByOpenid(openid);
    }

    @Override
    public List<JxcOpenuser> getByConpanyId(String companyId) {
        return baseMapper.getByConpanyId(companyId);
    }

    @Override
    public void updateIsDefult(String account,String openid) {
        baseMapper.updateIsDefult(account,openid);
    }

    @Override
    public void updateIsDefult2(String account,String openid) {
        baseMapper.updateIsDefult2(account,openid);
    }

    @Override
    public JxcOpenuser getByAccount(String account,String openid) {
        return baseMapper.getByAccount(account,openid);
    }
    @Override
    public JxcOpenuser getByaccount(String account) {
        return baseMapper.getByaccount(account);
    }
}
